var Search = function(option){
     var option = option;
     this.root = option.root;
     this.button = option.button;
};
Search.prototype.init = function(){
    var $element = $(this.element);
    var $button = $(this.button);
    $element.delegate($button,"click",$.proxy(Search,this.submit));
}
Search.prototype.submit = function(){
    alert("submited");
}

$(function(){
    var search = new Search({
        root : "#search",
        button : "#submit"
    });
    search.init();
})
